package com.ktjy.ktmall.service.impl;

import com.ktjy.ktmall.dao.WxUserDao;
import com.ktjy.ktmall.dao.impl.WxUserDaoImpl;
import com.ktjy.ktmall.entity.WxUser;
import com.ktjy.ktmall.service.WxUserService;

/**
 * @auth wzy
 * @date 2024/10/31 16:26
 */
public class WxUserServiceImpl implements WxUserService {

    WxUserDao userDao = new WxUserDaoImpl();

    @Override
    public WxUser findByMobile(String mobile) {
        return null;
    }

    @Override
    public WxUser findByOpenId(String openId) {
        return userDao. findByOpenId(openId);
    }

    @Override
    public int insert(WxUser user) {
        return userDao.insert(user);
    }

    @Override
    public int updateLastLoginTime(int id) {
        return userDao.updateLastLoginTime(id);
    }

    @Override
    public int updateWxUser(WxUser wxUser) {
        return 0;
    }

    @Override
    public WxUser findById(int userId) {
        return null;
    }
}
